 function OpenModelPopup()
    { 
        document.getElementById ('ModalPopupDiv').style.visibility='visible';
        document.getElementById ('ModalPopupDiv').style.display='';
        document.getElementById ('ModalPopupDiv').style.top= '50px';
        document.getElementById ('ModalPopupDiv').style.left='50px';
        
        document.getElementById ('MaskedDiv').style.display='';
        document.getElementById ('MaskedDiv').style.visibility='visible';
        document.getElementById ('MaskedDiv').style.top='-15px';
        document.getElementById ('MaskedDiv').style.left='-10px';
        document.getElementById ('MaskedDiv').style.position='absolute';
        document.getElementById ('MaskedDiv').style.width=  window.screen.width+'px';
        document.getElementById ('MaskedDiv').style.height= window.screen.height+'px';
    }
    function CloseModelPopup()
    {
        document.getElementById ('MaskedDiv').style.display='none';
        document.getElementById ('ModalPopupDiv').style.display='none';
    }
    function Submit()
    {
        if(document.getElementById ('txtName').value!='')
        {
            document.getElementById ('MaskedDiv').style.display='none';
            document.getElementById ('ModalPopupDiv').style.display='none';
            document.getElementById ('tdDisplayName').innerHTML='<H1> Hi ' + document.getElementById ('txtName').value +' !</H1>';
        }
        else 
        {
            alert ('Please enter your name');
        }
    }